#include <dolphin/socket.h>
int SOInetPtoN ( int af, const char* src, void* dst );
SOInetPtoN() converts an address in its standard text
presentation into its numeric binary form.
af |
The family of the address (must be SO_PF_INET). |
src |
A pointer to the string being passed in. (e.g.,
ddd.ddd.ddd.ddd) |
dst |
A pointer to a buffer where the function stores the numeric address. |
1 |
Succeeded. |
0 |
src
is not a valid IPv4 address notation. |
SO_EAFNOSUPPORT |
af is not SO_PF_INET. |